package com.gmu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采样记录表
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TblSample对象", description="采样记录表")
public class TblSample implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "采样记录id")
    @TableId(value = "sample_record_id", type = IdType.AUTO)
    private Integer sampleRecordId;

    @ApiModelProperty(value = "单位id")
    private Integer unitsId;

    @ApiModelProperty(value = "用户信息id")
    private Integer userId;

    @ApiModelProperty(value = "身份证号")
    private String idNumber;

    @ApiModelProperty(value = "扫码人id")
    private Integer volunteerId;

    @ApiModelProperty(value = "活动id")
    private Integer activitiesId;

    @ApiModelProperty(value = "采样时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")//设置查询数据库得到的时间格式，否则是这种格式的 2022-05-29T09:43:52.000+00:00
    private Date sampleTime;

    @ApiModelProperty(value = "已检测时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")//设置查询数据库得到的时间格式，否则是这种格式的 2022-05-29T09:43:52.000+00:00
    private Date testTime;

    @ApiModelProperty(value = "检测结果(阴性/阳性)")
    private String sampleResult;

    @ApiModelProperty(value = "检测状态 -1已检测-0已扫码")
    private Integer status;

    @ApiModelProperty(value = "单位")
    @TableField(exist = false)
    private TblUnits tblUnits;

    @ApiModelProperty(value = "用户信息")
    @TableField(exist = false)
    private TblUser tblUser;

    @ApiModelProperty(value = "活动信息")
    @TableField(exist = false)
    private TblActivities tblActivities;

    @ApiModelProperty(value = "学生信息")
    @TableField(exist = false)
    private TblStudent tblStudent;

    @ApiModelProperty(value = "教师信息")
    @TableField(exist = false)
    private TblTeacher tblTeacher;


}
